<template>
  <div>我是 helloworld
    <el-button>默认按钮</el-button>
  <el-button type="primary">主要按钮</el-button>
  </div>
</template>

<script>
export default {
  name: 'HelloWorld',
  created() {
    this.$API({
      name: 'getgoods',
      params: { pageindex: 1 }
    }).then(res => {
      console.log(res)
    }).catch(error => {
      console.log(error)
    })
    this.getnewslist()
  },
  methods: {
    getnewslist() {
      this.$API({
      name: 'getnewslist',
      paths: [13]
    }).then(res => {
      console.log(res)
    }).catch(error => {
      console.log(error)
    })
    }
  }
}
</script>

<style>

</style>